package org.tarena.note.web.controller.user;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.tarena.note.entity.NoteResult;
import org.tarena.note.service.UserService;

@Controller
@RequestMapping("/user")
public class CheckPwdController {
	
	@Resource
	private UserService userService;
	
	@RequestMapping("/checkPwd.form")
	@ResponseBody
	public NoteResult checkPwd(String userId,String pwd){
		System.out.println("进入了Controller");
		System.out.println("userId:"+userId+" pwd:"+pwd);
		NoteResult result =
			userService.checkPwd(userId, pwd);
		return result;
	}
}
